package homework20.com.neuedu.service;

import homework20.com.neuedu.dao.GameDaoImpl;

public class GameServiceImpl {
    GameDaoImpl gameDao=new GameDaoImpl();
    public Boolean add(String name) {
        gameDao.addGoods(name);
        System.out.println("添加物品成功");
        return true;
    }

    public Boolean update(int A, String name) {
        gameDao.updateGoods(A,name);
        System.out.println("修改物品成功");
        return true;
    }

    public Boolean delete(int A) {
        gameDao.deleteGoods(A);
        System.out.println("删除物品成功");
        return true;
    }

    public Boolean find() {
        gameDao.findGoodsS();
        return true;

    }
}
